﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Text;
using OpenAuth.Repository.Domain;
using OpenAuth.Repository.Interface;

namespace OpenAuth.App
{
    public class CYYGH012App : ApiBaseApp<CYYGH012>
    {
        public CYYGH012App(IApiRepository<CYYGH012> repository) : base(repository)
        {
        }
        /// <summary>
        /// 停诊信息查询_增量查询(门诊停诊查询(增量轮询))
        /// </summary>
        /// <param name="lastmaxczsjc">最后一次操作开始时间戳</param>
        /// <returns></returns>
        public IEnumerable<CYYGH012> QueryCYYGH012ByLastmaxczsjc(string lastmaxczsjc)
        {
            List<SqlParameter> param = new List<SqlParameter>();
            param.Add(new SqlParameter("@Lastmaxczsjc", lastmaxczsjc));
            param.Add(new SqlParameter("@Czyh", "hf001"));
            var result = Query<CYYGH012>("exec usp_web_webtrans_CYYGH012 @lastmaxczsjc=@Lastmaxczsjc,@czyh=@Czyh", param);
            return result;
        }
    }
}
